export default {
  data() {
    return {
      ps: 10,
      p: 1,
      form: {},
      base: {
        results: []
      },
      model: {}
    };
  },
  methods: {
    getData() {
      this.$api[this.$route.name].get({
        ...this.form
      }).then(res => {
        this.base = res;
      });
    }
  },
  mounted() {
    this.getData();
  }
}